package cn.edu.fzu.homemaking.company.filter.order;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import com.google.common.collect.ImmutableList;

import java.util.List;

/**
 * 过滤器配置
 * 
 * @author fangxin
 * @date 2023年04月12日
 */
@Component
public class FilterConfig {

    private final List<OrderFilter> orderFilters;

    @Autowired
    public FilterConfig(OrderFilter timeConflictFilter) {
        this.orderFilters = ImmutableList.of(timeConflictFilter);
    }


    @Bean("orderFilters")
    public List<OrderFilter> deliveryFilters() {
        return orderFilters;
    }

}
